import { PreferenRender } from "../shopMall/PreferenRender";
import { GTextFormat } from "../../../common/GTextFormat";
//class WelPreferenRender
    
    export  class WelPreferenRender extends PreferenRender
    {
        constructor()
        {
            super();
            return;
        }

        public /* override */ set data(arg1: Object)
        {
            super.data = arg1;
            if (_previewBtn && _previewBtn.parent) 
            {
                _previewBtn.y = 63;
            }
            return;
        }

        protected /* override */ createChildren(): void
        {
            super.createChildren();
            _propBg.x = 0;
            _propBg.y = 20;
            _propItem.move(5, 25);
            _panicBuyLabel.x = _propItem.x - 5;
            _panicBuyLabel.y = _propItem.y - 5;
            var loc1=new GTextFormat("", 12, 16777215);
            loc1.align = flash.text.TextFormatAlign.CENTER;
            _nameTxt.defaultTextFormat = loc1;
            _nameTxt.autoSize = flash.text.TextFieldAutoSize.CENTER;
            _nameTxt.x = 90;
            _nameTxt.y = 0;
            _buyBtn.move(155, 60);
            _remainderTxt.x = 70;
            _remainderTxt.y = 65;
            _buyNumTxt.x = 145;
            _buyNumTxt.y = _nameTxt.y + 2;
            _buyLimitTxt.x = _buyNumTxt.x + _buyNumTxt.textWidth + 2;
            _buyLimitTxt.y = _buyNumTxt.y;
            _septalLine.y = 88;
            return;
        }
    }
